import request from '@/utils/request'

// 创建服务活动
export function createServiceInfofour(data) {
  return request({
    url: '/system/service-infofour/create',
    method: 'post',
    data: data
  })
}

// 更新服务活动
export function updateServiceInfofour(data) {
  return request({
    url: '/system/service-infofour/update',
    method: 'put',
    data: data
  })
}

// 删除服务活动
export function deleteServiceInfofour(id) {
  return request({
    url: '/system/service-infofour/delete?id=' + id,
    method: 'delete'
  })
}

// 获得服务活动
export function getServiceInfofour(id) {
  return request({
    url: '/system/service-infofour/get?id=' + id,
    method: 'get'
  })
}

// 获得服务活动分页
export function getServiceInfofourPage(params) {
  return request({
    url: '/system/service-infofour/page',
    method: 'get',
    params
  })
}
// 导出服务活动 Excel
export function exportServiceInfofourExcel(params) {
  return request({
    url: '/system/service-infofour/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}